﻿<phone:PhoneApplicationPage x:Class="EmperialApps.WeatherSpark.SummaryPage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:local="clr-namespace:EmperialApps.WeatherSpark"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            Orientation="Portrait"
                            SupportedOrientations="Portrait"
                            mc:Ignorable="d"
                            d:DesignWidth="480"
                            d:DesignHeight="696"
                            shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot">
        <phone:Panorama x:Name="Panorama"
                        Margin="0"
                        Title="{Binding Mode=OneTime, Source={StaticResource Localized}, Path=Strings.SummaryPage_Title}">
            <phone:Panorama.TitleTemplate>
                <DataTemplate>
                    <TextBlock Margin="0,49,0,-24"
                               FontSize="100"
                               Text="{Binding}" />
                </DataTemplate>
            </phone:Panorama.TitleTemplate>

            <phone:PanoramaItem Orientation="Horizontal">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>

                    <TextBlock Style="{StaticResource PhoneTextLargeStyle}"
                               x:Name="AddHelpText"
                               Margin="12"
                               Width="460"
                               Foreground="{StaticResource PhoneSubtleBrush}"
                               HorizontalAlignment="Left"
                               TextWrapping="Wrap">
                        <Run Text="{Binding Mode=OneTime, Source={StaticResource Localized}, Path=Strings.SummaryPage_GettingStarted_AddButtonPart1}" />
                        <Run Text="&#x200a;" />
                        <Run FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                             Text="{Binding Mode=OneTime, Source={StaticResource Localized}, Path=Strings.appbar_add}" />
                        <Run Text="&#x200a;" />
                        <Run Text="{Binding Mode=OneTime, Source={StaticResource Localized}, Path=Strings.SummaryPage_GettingStarted_AddButtonPart2}" />
                    </TextBlock>

                    <Grid x:Name="ManageHelpText"
                          Grid.Row="1"
                          Margin="12"
                          Width="450"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Center">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <TextBlock Style="{StaticResource PhoneTextExtraLargeStyle}"
                                   Grid.Column="0"
                                   Margin="12,-8,0,0"
                                   Foreground="{StaticResource PhoneSubtleBrush}"
                                   Text="&#x2190;" />

                        <TextBlock Style="{StaticResource PhoneTextLargeStyle}"
                                   Grid.Column="1"
                                   Foreground="{StaticResource PhoneSubtleBrush}"
                                   Text="{Binding Mode=OneTime, Source={StaticResource Localized}, Path=Strings.SummaryPage_GettingStarted_TileMenus}"
                                   TextWrapping="Wrap" />
                    </Grid>

                    <Grid x:Name="ForecastContainer"
                          Grid.RowSpan="2"
                          Width="720"
                          toolkit:TiltEffect.IsTiltEnabled="True" />
                </Grid>
            </phone:PanoramaItem>

            <phone:PanoramaItem x:Name="TileItem">
                <toolkit:WrapPanel x:Name="TileContainer">
                    <Panel.Resources>
                        <Style TargetType="Button">
                            <Setter Property="ContentTemplate"
                                    Value="{StaticResource TileTemplate}" />
                            <Setter Property="BorderThickness"
                                    Value="0" />
                            <Setter Property="Padding"
                                    Value="0" />
                        </Style>

                        <Style x:Key="RebuildButtonStyle"
                               TargetType="Button"
                               BasedOn="{StaticResource RoundButton}">
                            <Setter Property="VerticalAlignment"
                                    Value="Center" />
                            <Setter Property="VerticalContentAlignment"
                                    Value="Center" />
                        </Style>
                    </Panel.Resources>
                </toolkit:WrapPanel>
            </phone:PanoramaItem>
        </phone:Panorama>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsMenuEnabled="True"
                              IsVisible="True" />
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
